package io.adrainty.bolee.framework.commons.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>DataSecurityEntity</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 数据权限
 * @since 2025/8/1 11:29:33
 */

@Data
@Schema(description = "数据权限")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DataSecurityEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -918373159059106262L;

    @Schema(description ="仅本人数据权限")
    private Boolean yourselfData;

    @Schema(description ="数据权限对应部门编号集合")
    private List<String> deptNos;

}
